﻿using ConfExpert.Forms.Base;
using System;
using System.Data;
using DevTeam;
using ConfExpert.Forms.Depo._7C;
using ConfExpert.Forms.Rapor;
using DevExpress.XtraReports.UI;

namespace ConfExpert.Forms.Aksesuar
{
    public partial class AksesuarGiren : XForm
    {
        public AksesuarGiren()
        {
            InitializeComponent();
        }

        private void AksesuarReport_Load(object sender, EventArgs e)
        {
            gridView1.Init("GetAksesuarGirenParti");
        }

        private void gridView1_FocusedRowChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedRowChangedEventArgs e)
        {
           
            
        }

        private void gridView1_RowClick(object sender, DevExpress.XtraGrid.Views.Grid.RowClickEventArgs e)
        {
            int a = gridView1.GetFocusedRowCellValue("AksesuarGirenPartiId").ToInt();
            DataTable dt = ExecuteDataTable("GetAksesuarIdbyAksesuarGirenPartiId", a);
            AksesuarGirenReport ar = new AksesuarGirenReport(dt);
            ar.ShowPreview();
        }
    }
}
